<?php

class tourComponents extends sfComponents
{

  public function executeListconcerts()
  {
    $concert_id = $this->getRequestParameter('id');
    if (!is_null($concert_id))
    {
      $c = new Criteria();
      $c->add(ConcertPeer::TOUR_ID, $concert_id);
      $c->addDescendingOrderByColumn(ConcertPeer::PLAY_AT);
      $this->concerts = ConcertPeer::doSelect($c);
    }
  }

}
